﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for NhaPhanPhoiEntity
/// </summary>
/// 

public class NhaPhanPhoiEntity
{

    private int maNPP;
    private string tenNPP;
    public NhaPhanPhoiEntity()
    { }
    public NhaPhanPhoiEntity(int maNPP, string tenNPP)
    {
        this.maNPP = maNPP;
        this.tenNPP = tenNPP;
    }
    public int MaNPP
    {
        get { return this.maNPP; }
        set
        {
            if (value == null)
                throw new Exception("maNPP not allow nullvalue.");
            this.maNPP = value;
        }
    }
    public string TenNPP
    {
        get { return this.tenNPP; }
        set { this.tenNPP = value; }
    }
    public override string ToString()
    {
        return this.maNPP + "; " + this.tenNPP + "; ";
    }
    public override bool Equals(Object obj)
    {
        NhaPhanPhoiEntity me = (NhaPhanPhoiEntity)obj;
        bool ret = this.MaNPP.Equals(me.MaNPP);
        return ret;
    }
    public override int GetHashCode()
    {
        return this.MaNPP.GetHashCode();
    }

}
public enum NhaPhanPhoiEnum
{
    VietHan=2,
    DaiPhat=1
}